package ${doPackage};

import com.douya.common.pojo.entity.BaseEntity;
<#if columnHasBol>
import com.douya.common.persistence.BooleanConverter;
</#if>
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import com.baomidou.mybatisplus.annotation.TableName;
<#if doColumnHasDate>
import java.time.LocalDate;
</#if>
<#if doColumnHasDateTime>
import java.time.LocalDateTime;
</#if>
<#if doColumnHasTime>
import java.time.LocalTime;
</#if>

/**
 * 说明：${remarks}实体类
 *
 * @author ${author}
 * @date ${date}
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("${table}")
public class ${class}DO extends BaseEntity {

<#list attrs as attr>
    /**
      * ${attr.remarks}
     */
    <#if attr.bol>
    @Column(name = "${attr.column}")
    @Convert(converter = BooleanConverter.class)
    </#if>
    private ${attr.type} ${attr.name};

</#list>
}